import type { UserConfig } from 'vite'
import { defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config.ts'

export default mergeConfig(
  viteConfig as UserConfig,
  defineConfig({
    test: {
      // 可以根据需要配置其他选项
      environment: 'node',
      include: ['src/tests/node/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
    },
    resolve: {
      alias: {
        // 可以根据需要配置别名
      },
    },
  }),
)
